from typing import AsyncIterator, Any

import scrapy


class HttpbinSpider(scrapy.Spider):
    # 爬虫名
    name = "httpbin"


    async def start(self):

        # yield scrapy.Request(url=f'https://httpbin.org/get?age=10', headers={'User-Agent': 'Mozilla/5.0'})
        yield scrapy.Request(url=f'https://httpbin.org/get?age=10', dont_filter=True,headers={
            # "Cookie": 'sessionid=ajlgoingoef5',
        }, cookies={
            # "sessionid": 'eeafejea4g6'
        },meta={
            'dont_merge_cookies': True
        })



    def parse(self, response):
        print(response.json())